package com.imooc.code;

import org.springframework.stereotype.Component;
import org.springframework.web.context.request.ServletWebRequest;

import com.imooc.security.core.validate.code.ValidateCodeGenerator;
import com.imooc.security.core.validate.code.image.ImageCode;

/**
 * 4.8.16 新建Demo验证码生成器，覆盖core ValidateCodeBeanConfig中的
 * @author qilongfei
 *
 */
/* 4.8.18 注释掉防止报错
@Component("imageCodeGenerator")*/
public class DemoImageCodeGenerator implements ValidateCodeGenerator{

	/**
	 * 4.8.17 添加生成验证码方法
	 */
	@Override
	public ImageCode generate(ServletWebRequest request) {
		System.out.println("更高级的图形验证码生成代码");
		return null;
	}
	
}
